import junit.framework.TestCase;

public class JUnitTest3 extends TestCase {
	
	Liczba a;
	public void setUp() throws LiczbaException
	{
		a = new Liczba ("5",10);
	}
	public void testJeden() throws Exception 
	{
		String str = a.zapis(2);
		assertEquals(str, "101");
	}
	public void testDwa() throws Exception 
	{
		String str = a.zapis(2);
		assertEquals("5 na binarny to 101",str,"101");		
	}
	public void testTrzy() throws Exception 
	{
		String str = a.zapis(2);
		assertNotSame(str,"111");
	}
	public void testCztery() throws Exception 
	{
		assertNotNull(a);	
	}
	public void testPiec() throws Exception 
	{
		fail();
	}
    public void testFive() throws Exception{ //sprawdza czy obiekty są takie same
		assertSame(a,a);
	}
	
	public void tearDown()
	{
		a = null;
	}
}
